home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / pc_board / gift4b16.zip / PCBTEST.BAT < prev    next >
DOS Batch File  |  1992-09-04  |  1KB  |  49 lines

  1. @echo off
  2. if exist pcbpass.txt del pcbpass.txt
  3. if exist pcbfail.txt del pcbfail.txt
  4. testfile gif zip
  5. if errorlevel == 2 goto gif
  6. if errorlevel == 1 goto zip
  7. goto crc
  8.  
  9. :gif
  10. if %2 == test goto gift
  11. giftest %1 /B:2/F:%3 > PCBPASS.TXT
  12. if errorlevel == 25 goto badgif
  13. if errorlevel == 20 goto badgif
  14. if errorlevel == 10 goto end
  15. if errorlevel == 1 goto badgif
  16. goto end
  17.  
  18. rem -- If GIFtest deletes the file (the /E parameter) then :BADGIF will
  19. rem -- rename it to PCBFAIL.TXT.  The "not exist %1" is faster than all
  20. rem -- that errorlevel checking.
  21. :gift
  22. echo Testing GIF file...
  23. giftest %1 /E/B:2/F:%3 > PCBPASS.TXT
  24. if not exist %1 goto badgif
  25. goto end
  26.  
  27. :badgif
  28. move PCBPASS.TXT PCBFAIL.TXT /Q
  29. goto end
  30.  
  31. :zip
  32. ptest %1 ptest.cfg
  33. if %2 == test goto end
  34. if exist pcbfail.txt goto end
  35.  
  36. pcbdiz %1 %3 /AV/D/U
  37.  
  38. :crc
  39. if exist pcbpass.txt del pcbpass.txt
  40. rem proecho 1 ~Adding %@name[%1] to CRC database...
  41. zdcsfc %1 %2 %3
  42. goto end
  43.  
  44. :end
  45. if exist PCBPASS.TXT type PCBPASS.TXT >> f:\pcb\PCBPASS.LOG
  46. if exist PCBFAIL.TXT type PCBFAIL.TXT >> f:\pcb\PCBFAIL.LOG
  47. if exist PCBFAIL.TXT move %1 h:\hold /q
  48. if exist %3 type %3 >> f:\pcb\desc
  49.